interface Person{
    firstName: string;
    lastName: string;
}

function gerrter(person:Person){
    console.log("hello, "+ person.firstName + " " + person.lastName);
}

var user = {firstName : 'Jane', lastName: 'User'};
gerrter(user);